<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>面向对象-等比图</title>
    <link rel="stylesheet" href="./面向对象-等比图.css">
</head>

<body>
    <div class="box enlarge1">
        <div class="img">
            <div class="mask"></div>
        </div>
        <ul>
            <li class="active" imgName="1">
                <img src="./imgs/1small.jpg" alt="">
            </li>
            <li imgName="2">
                <img src="./imgs/2small.jpg" alt="">
            </li>
        </ul>
        <div class="enlarge"></div>
    </div>
    <br>
    <br>
    <br>

    <div class="box enlarge2">
        <div class="img">
            <div class="mask"></div>
        </div>
        <ul>
            <li class="active" imgName="1">
                <img src="./imgs/1small.jpg" alt="">
            </li>
            <li imgName="2">
                <img src="./imgs/2small.jpg" alt="">
            </li>
        </ul>
        <div class="enlarge"></div>
    </div>

</body>

</html>
<script type="module">
    import RatioEnlarge from './面向对象-等比图.js'
    let ratioEnlarge = new RatioEnlarge('.enlarge1', {})
    let ratioEnlarge2 = new RatioEnlarge('.enlarge2', {})
</script>